﻿namespace CleanArchitecture.Web.Controllers.Backend.BackendApi
{
    /// <summary>
    /// DavidLee 所有后端的API路由在此注册，方便查找及重复排查
    /// </summary>
    public static class BackendApiRouteConfig
    {
        #region Login/Logout
        public const string LoginApiRoute = "api/backend/login";
        public const string LogoutApiRoute = "api/backend/logout";
        #endregion
        #region BackendHome
        public const string LoadSystemMenuRoute = "api/backend/loadsystemmenu";
        public const string LoadSystemNoticeList = "api/backend/loadsystemnotices";
        public const string AddNewSystemNotice = "api/backend/addnewsystemnotice";
        #endregion
        #region Account
        public const string UploadAdminUserAvatar = "api/backend/account/uploadavatar";
        public const string UpdateCurrentAdminUserAccountInfo = "api/backend/account/edit";
        public const string LoadAdminRoles = "api/backend/account/getadminroles";
        public const string LoadAdminUsers = "api/backend/account/getadminusers";
        public const string UpdateAdminUserAccountInfo = "api/system/adminusermanage/accountedit";
        public const string DeleteAdminUserAccount = "api/system/adminusermanage/accountdelete";
        public const string UpdateAdminRole = "api/system/adminrolemanage/edit";
        public const string DeleteAdminRole = "api/system/adminrolemanage/delete";
        #endregion

        #region SystemManage
        public const string BackendOrganizeSetOrder = "api/system/setorganizeorder";
        public const string BackendOrganizeUpdate = "api/system/organizemanage/edit";
        public const string BackendOrganizeDelete = "api/system/organizemanage/delete";
        public const string LoadSystemDataDicTree = "api/system/getsystemdatadictree";
        public const string LoadSystemDataDicButtons = "api/system/getsystemdatadicbtns";
        public const string LoadSystemModuleTreeAll = "/api/system/getsystemmoduletreeall";
        public const string LoadSystemModuleTreeById = "/api/system/getsystemmoduletreebyid";
        public const string UpdateSystemModule = "/api/system/systemmodule/edit";
        public const string DeleteSystemModule = "/api/system/systemmodule/delete";
        public const string LoadSystemModuleAuthorizeDataByRoleId = "/api/system/getsystemmoduleauthorizedatabyroleid";
        public const string UpdateSystemModuleAuthorize = "/api/system/authorize/edit";
        public const string LoadColumAuthorizeData = "/api/system/getcolumnathorizedata";
        public const string UpdateColumnAuthorize = "/api/system/columnauthorize/edit";
        public const string CheckWebsiteManageButton = "/api/system/websitemanage/checkbuttonauth";
        public const string WebsiteManageEdit = "/api/system/websitemanage/edit";
        #endregion

        #region Business
        public const string BackendLoadColumnTree = "api/backend/business/columnmanage/getcolumntree";
        public const string BackendLoadAuthorizedColumnTree = "api/backend/business/columnmanage/getauthcolumntree";
        public const string BackendUpdateColumn = "api/backend/business/columnmanage/edit";
        public const string BackendDeleteColumn = "api/backend/business/columnmanage/delete";
        public const string BackendColumnImageUpload = "api/backend/business/columnimageupload";
        public const string BackendColumnSetOrder = "api/backend/business/columnmanage/setorder";

        public const string BackendLoadNewsList = "api/backend/business/newsmanage/getnewslist";
        public const string BackenNewsSearch = "api/backend/business/newsmanage/search";
        public const string BackendNewsFileUpload = "api/backend/business/newsfileupload";
        public const string BackendNewsDeleteFileList = "api/backend/business/newsmanage/newsfilelistdelete";
        public const string BackendNewsDeleteCoverImage = "api/backend/business/newsmanage/deletecoverimage";
        public const string BackendNewsEdit = "api/backend/business/newsmanage/edit";
        public const string BackendCheckColumnAuthorize = "api/backend/business/newsmanage/checkcolumnauthorize";
        public const string BackendNewsSetRecommend = "api/backend/business/newsmanage/setrecommend";
        public const string BackendNewsDelete = "api/backend/business/newsmanage/delete";
        public const string BackendNewsSetOrder = "api/backend/business/newsmanage/setorder";

        public const string BackendLoadBlogList = "api/backend/business/blogmanage/getbloglist";
        public const string BackenBlogSearch = "api/backend/business/blogmanage/search";
        public const string BackendBlogFileUpload = "api/backend/business/blogfileupload";
        public const string BackendBlogDeleteFileList = "api/backend/business/blogmanage/blogfilelistdelete";
        public const string BackendBlogEdit = "api/backend/business/blogmanage/edit";
        public const string BackendBlogSetRecommend = "api/backend/business/blogmanage/setrecommend";
        public const string BackendBlogDelete = "api/backend/business/blogmanage/delete";

        public const string BackendLoadResourceList = "api/backend/business/getresourcelist";
        public const string BackendDeleteResource = "api/backend/business/resourcemanage/delete";
        public const string BackendResourceUpload = "api/backend/business/resourceupload";
        public const string BackendResourceEdit = "api/backend/business/resourcemanage/edit";

        public const string BackendLoadAdvertiseList = "api/backend/business/advertisemanage/getadvertiselist";
        public const string BackendAdvertiseEdit = "api/backend/business/advertisemanage/edit";
        public const string BackendDeleteAdvertise = "api/backend/business/advertisemanage/delete";

        public const string BackendLoadSystemCommentList = "api/backend/business/commentmanage/getsystemcommentlist";
        public const string BackendAddSystemCommentResponse = "api/backend/business/commentmanage/addresponse";
        public const string BackendDeleteSystemComment = "api/backend/business/commentmanage/deletesystemcomment";
        #endregion
    }
}
